package com.txzt.gaea.business.project.service.impl;

import com.txzt.gaea.business.project.domain.model.ProjectLog;
import com.txzt.gaea.business.project.service.IProjectLogService;
import com.txzt.gaea.common.base.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProjectLogServiceImpl extends BaseServiceImpl<ProjectLog> implements IProjectLogService {

    @Override
    public List<ProjectLog> getProjectLogByFlowId(Long flowId) {
        return sqlManager.query(ProjectLog.class).andEq("flow_id", flowId).select();
    }

    @Override
    public List<ProjectLog> getProjectLog(Long projectId, Integer operateType) {
        return sqlManager.query(ProjectLog.class).andEq("project_id", projectId).andEq("operate_type", operateType).select();
    }
}
